package com.itkaien.anno.ImportSelector;

import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class testdemo {

    @Test
    public void test() {
        AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext(HelloConfiguration.class);
        HelloService helloServiceA = annotationConfigApplicationContext.getBean("helloServiceA", HelloService.class);
        System.out.println(helloServiceA);
    }
}
